package com.cyz.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cyz.mapper.SubjectMapper;
import com.cyz.pojo.Subject;
import com.cyz.service.SubjectService;

@Service("subjectServiceImpl")
public class SubjectServiceImpl implements  SubjectService{
	
	@Resource(name="subjectMapper")
	private SubjectMapper subjectMapper;

	public Subject getSubjectById (Integer id)
	{
		return subjectMapper.getSubjectById(id);
		
	}
}
